import request from '@/utils/request'

// 获取奖学金项目列表
export function getScholarships(params) {
  const { page = 0, size = 10, keyword } = params || {}
  return request({
    url: '/api/admin/scholarships',
    method: 'get',
    params: {
      page,
      size,
      keyword
    }
  })
}

// 创建奖学金项目
export function createScholarship(data) {
  return request({
    url: '/api/admin/scholarships',
    method: 'post',
    data
  })
}

// 更新奖学金项目
export function updateScholarship(id, data) {
  return request({
    url: `/api/admin/scholarships/${id}`,
    method: 'put',
    data
  })
}

// 删除奖学金项目
export function deleteScholarship(id) {
  return request({
    url: `/api/admin/scholarships/${id}`,
    method: 'delete'
  })
} 